package fangbing.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import fangbing.dao.MenstruationDao;
import fangbing.model.vo.MenstruationBaseVo;

@Service("MenstruationService")
public class MenstruationServiceImpl implements MenstruationService {
	
	@Autowired
	private MenstruationDao menstruationDao;

	public void addMenstruationBase(MenstruationBaseVo menstruationBaseVo) {
		menstruationDao.addMenstruationBase(menstruationBaseVo);
	}

	public void updateMenstruationBase(MenstruationBaseVo menstruationBaseVo) {
		menstruationDao.updateMenstruationBase(menstruationBaseVo);
	}

	
	public MenstruationBaseVo getMenstruationBaseByUserId(Integer userId) {
		return menstruationDao.getMenstruationBaseByUserId(userId);
	}

	public MenstruationDao getMenstruationDao() {
		return menstruationDao;
	}

	public void setMenstruationDao(MenstruationDao menstruationDao) {
		this.menstruationDao = menstruationDao;
	}

	
	
	

}
